package edu.tongji.engine.plugin.webservice;

import java.net.URL;

import org.codehaus.xfire.client.Client;

import edu.tongji.engine.common.Log;

public class WebServiceUtil {

	public Object[] invokeWebService(String wsdlUrl, String function, Object[] params){
		try{
		Client client = new Client(new URL(wsdlUrl));
        Object[] results = client.invoke(function, params);
		return results;
		}catch(Exception e){
			e.printStackTrace();
			Log.getLoger().loger.error("modify actor Error", e);
			return null;
		}
	}
}
